package com.cctv.custom.hibernate.integrated.wrapper;

import org.hibernate.Session;
import org.hibernate.SessionFactory;

public class SpringHibernateDao extends HibernateDao {
	private SessionFactory sessionFactory;

	@Override
	public Session getSession() {
		return getSessionFactory().getCurrentSession();
	}

	public SessionFactory getSessionFactory() {
		return sessionFactory;
	}

	public void setSessionFactory(SessionFactory sessionFactory) {
		this.sessionFactory = sessionFactory;
	}

}
